package com.beta.cust.bind.datasync.config;

import com.beta.cat.utils.http.HttpManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: zhuwei
 * @Date: 2022/11/1 17:14
 * @Description:
 */
@Configuration
public class HttpConfig {

    @Bean
    public HttpManager httpManager() {
        HttpManager httpManager = HttpManager.getInstance();
        // 设置连接超时时间为5s
        httpManager.setConnectTimeout(5000);
        // 设置SocketTimeout为30s
        httpManager.setSocketTimeout(30000);
        return httpManager;
    }
}
